package com.demo.bean;

/**
 * @author 李文彬
 * @date 2017年7月9日 下午1:12:57
 * @class
 * @用处 ：架式设备信息
 */
public class Asset {
	/**
	 * 设备编号
	 */
	private String id;
	/**
	 * 设备名称
	 */
	private String name;
	/**
	 * 设备型号
	 */
	private String deviceType;
	/**
	 * 设备U高
	 */
	private String uHigh;

	public Asset() {
		super();
	}

	public Asset(String id, String name, String deviceType, String uHigh) {
		super();
		this.id = id;
		this.name = name;
		this.deviceType = deviceType;
		this.uHigh = uHigh;

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public String getuHigh() {
		return uHigh;
	}

	public void setuHigh(String uHigh) {
		this.uHigh = uHigh;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((deviceType == null) ? 0 : deviceType.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((uHigh == null) ? 0 : uHigh.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Asset other = (Asset) obj;
		if (deviceType == null) {
			if (other.deviceType != null)
				return false;
		} else if (!deviceType.equals(other.deviceType))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (uHigh == null) {
			if (other.uHigh != null)
				return false;
		} else if (!uHigh.equals(other.uHigh))
			return false;
		return true;
	}

}
